using System;

namespace UdpAuthorizationService.Core.Logging
{
	public class LogEvent
	{
		public DateTime Time { get; private set; }
		public Severity Severity { get; private set; }
		public String Message { get; private set; }

		public LogEvent(Severity severity, String message)
		{
			Time = DateTime.Now;
			Severity = severity;
			Message = message;
		}

		public LogEvent(Severity severity, String message, params object[] args)
		{
			Time = DateTime.Now;
			Severity = severity;
			Message = String.Format(message, args);
		}
	}
}